{{define "console/common/main-sidebar.html"}}
<!-- Left side column. contains the logo and sidebar -->
<aside class="main-sidebar">

    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">

        <!-- Sidebar user panel (optional) -->
        <!--
        <div class="user-panel clearfix">
            <div class="pull-left image">
                <img src="__ROOT__/static/common/img/avatar.png" class="img-circle" alt="User Image">
            </div>
            <div class="pull-left info">
                <p>{$user.user_nickname}</p>
                <a href="#">{$user.user_mobile}</a>
            </div>
        </div>
        -->

        <!-- search form (Optional) -->
        <!--
        <form action="#" method="get" class="sidebar-form">
            <div class="input-group">
                <input type="text" name="q" class="form-control" placeholder="Search...">
                <span class="input-group-btn">
              <button type="submit" name="search" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i>
              </button>
            </span>
            </div>
        </form>
        -->
        <!-- /.search form -->

        <!-- Sidebar Menu -->
        <ul class="sidebar-menu" data-widget="tree">
            <li class="header">HEADER</li>
            <!-- Optionally, you can add icons to the links -->
            <!--
            <li class="active"><a href="#"><i class="fa fa-link"></i> <span>Link</span></a></li>
            <li><a href="#"><i class="fa fa-link"></i> <span>Another Link</span></a></li>
            -->

            <li class="treeview {{if or (eq .path "/console/index") (eq .path "/console/about")}}active{{end}}">
                <a href="index"><i class="fa fa-dashboard"></i> <span>仪表盘</span>
                    <span class="pull-right-container">
                <i class="fa fa-angle-left pull-right"></i>
              </span>
                </a>
                <ul class="treeview-menu">
                    <li class="{{if eq .path "/console/index"}}active{{end}}"><a href="index"><i class="fa fa-circle-o"></i>首页</a></li>
                    <li class="{{if eq .path "/console/about"}}active{{end}}"><a href="about"><i class="fa fa-circle-o"></i>关于</a></li>
                </ul>
            </li>
            <li class="treeview {in name='Request.controller' value='Job'}active{/in}">
                <a href="{:url( 'Job/index' )}"><i class="fa fa-money"></i> <span>任务管理</span>
                    <span class="pull-right-container">
                <i class="fa fa-angle-left pull-right"></i>
              </span>
                </a>
                <ul class="treeview-menu">
                    <li class="{in name='Request.controller' value='Job'}{in name='Request.action' value='index'}active{/in}{/in}"><a href="{:url( 'Job/index' )}"><i class="fa fa-circle-o"></i>我的任务</a></li>
                    <li class="{in name='Request.controller' value='Job'}{in name='Request.action' value='publish'}active{/in}{/in}"><a href="{:url( 'Job/publish' )}"><i class="fa fa-circle-o"></i>发布任务</a></li>
                </ul>
            </li>
            <li class="{in name='Request.controller' value='Transaction'}active{/in}"><a href="{:url( 'Transaction/index' )}"><i class="fa fa-exchange"></i> <span>收支明细</span></a></li>
            <li class="{in name='Request.controller' value='Deposit'}active{/in}"><a href="{:url( 'Deposit/index' )}"><i class="fa fa-money"></i> <span>充值</span></a></li>
            <li class="treeview {in name='Request.controller' value='Profile'}active{/in}">
                <a href="{:url( 'Profile/index' )}"><i class="fa fa-cog"></i> <span>设置</span>
                    <span class="pull-right-container">
                <i class="fa fa-angle-left pull-right"></i>
              </span>
                </a>
                <ul class="treeview-menu">
                    <li class="{in name='Request.controller' value='Profile'}{in name='Request.action' value='index'}active{/in}{/in}"><a href="{:url( 'Profile/index' )}"><i class="fa fa-circle-o"></i>个人资料</a></li>
                    <li class="{in name='Request.controller' value='Shop'}{in name='Request.action' value='index'}active{/in}{/in}"><a href="{:url( 'Shop/index' )}"><i class="fa fa-circle-o"></i>我的店铺</a></li>
                </ul>
            </li>
            <li class="{in name='Request.controller' value='Help'}active{/in}"><a href="{:url( 'Help/index' )}"><i class="fa fa-question-circle"></i> <span>帮助与反馈</span></a></li>

        </ul>
        <!-- /.sidebar-menu -->
    </section>
    <!-- /.sidebar -->
</aside>
        {{end}}